微軟做了一個 Open Source 的 UI 測試工具 - Playwright,我們可以用 C#、JavaScript、Python 來撰寫 UI 測試程式碼。
底下這篇文章是說明使用 C# 搭配 xUnit 及 Playwright,來為 ASP .NET Core 的網站撰寫 UI 測試程式。
https://www.meziantou.net/automated-ui-tests-an-asp-net-core-application-with-playwright-and-xunit.htm